class QueryShoppingCartBean {
  Null? orderId;
  int? shopId;
  String? shopName;
  int? goodsNum;
  int? shopInvoices;
  Null? orderGoodsId;
  double? goodsTotalPrice;
  List<GoodsDetailsList>? goodsDetailsList;
  Null? orderGoodsStatus;
  Null? redEnvelopeActivity;
  Null? discountCouponActicity;
  Null? orderGoodsEvaluationStatus;
  bool isSelect = false;

  QueryShoppingCartBean(
      {this.orderId,
      this.shopId,
      this.shopName,
      this.goodsNum,
      this.shopInvoices,
      this.orderGoodsId,
      this.goodsTotalPrice = 0.0,
      this.goodsDetailsList,
      this.orderGoodsStatus,
      this.redEnvelopeActivity,
      this.discountCouponActicity,
      this.orderGoodsEvaluationStatus});

  QueryShoppingCartBean.fromJson(Map<String, dynamic> json) {
    orderId = json['order_id'];
    shopId = json['shop_id'];
    shopName = json['shop_name'];
    goodsNum = json['goodsNum'];
    shopInvoices = json['shopInvoices'];
    orderGoodsId = json['order_goods_id'];
    goodsTotalPrice = json['goodsTotalPrice'] ?? 0.00;
    if (json['goodsDetailsList'] != null) {
      goodsDetailsList = <GoodsDetailsList>[];
      json['goodsDetailsList'].forEach((v) {
        goodsDetailsList!.add(new GoodsDetailsList.fromJson(v));
      });
    }
    orderGoodsStatus = json['order_goods_status'];
    redEnvelopeActivity = json['redEnvelopeActivity'];
    discountCouponActicity = json['discountCouponActicity'];
    orderGoodsEvaluationStatus = json['order_goods_evaluation_status'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['order_id'] = this.orderId;
    data['shop_id'] = this.shopId;
    data['shop_name'] = this.shopName;
    data['goodsNum'] = this.goodsNum;
    data['shopInvoices'] = this.shopInvoices;
    data['order_goods_id'] = this.orderGoodsId;
    data['goodsTotalPrice'] = this.goodsTotalPrice;
    if (this.goodsDetailsList != null) {
      data['goodsDetailsList'] = this.goodsDetailsList!.map((v) => v.toJson()).toList();
    }
    data['order_goods_status'] = this.orderGoodsStatus;
    data['redEnvelopeActivity'] = this.redEnvelopeActivity;
    data['discountCouponActicity'] = this.discountCouponActicity;
    data['order_goods_evaluation_status'] = this.orderGoodsEvaluationStatus;
    return data;
  }
}

class GoodsDetailsList {
  int? shopId;
  int? commonId;
  int? goodsId;
  String? goodsName;
  String? goodsImage;
  int goodsNum = 0;
  int goodsStock = 0;
  double goodsPrice = 0.0;
  double? goodsTotalPrice;
  Null? goodsSpec;
  String? goodsSpecChineseValue;
  int? goodsIsShelves;
  Null? specification;
  int goodsMaxSale = 0;
  bool isSelect = false;

  GoodsDetailsList(
      {this.shopId,
      this.commonId,
      this.goodsId,
      this.goodsName,
      this.goodsImage,
      this.goodsNum = 0,
      this.goodsStock = 0,
      this.goodsPrice = 0.0,
      this.goodsTotalPrice,
      this.goodsSpec,
      this.goodsSpecChineseValue,
      this.goodsIsShelves,
      this.specification,
      this.goodsMaxSale = 0});

  GoodsDetailsList.fromJson(Map<String, dynamic> json) {
    shopId = json['shop_id'];
    commonId = json['common_id'];
    goodsId = json['goods_id'];
    goodsName = json['goods_name'];
    goodsImage = json['goods_image'];
    goodsNum = json['goods_num'];
    goodsStock = json['goods_stock'];
    goodsPrice = json['goods_price'];
    goodsTotalPrice = json['goods_totalPrice'];
    goodsSpec = json['goods_spec'];
    goodsSpecChineseValue = json['goods_spec_chineseValue'];
    goodsIsShelves = json['goodsIsShelves'];
    specification = json['specification'];
    goodsMaxSale = json['goodsMaxSale'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['shop_id'] = this.shopId;
    data['common_id'] = this.commonId;
    data['goods_id'] = this.goodsId;
    data['goodsId'] = this.goodsId;
    data['goods_name'] = this.goodsName;
    data['goods_image'] = this.goodsImage;
    data['goods_num'] = this.goodsNum;
    data['goods_stock'] = this.goodsStock;
    data['goods_price'] = this.goodsPrice;
    data['goods_totalPrice'] = this.goodsTotalPrice;
    data['goods_spec'] = this.goodsSpec;
    data['goods_spec_chineseValue'] = this.goodsSpecChineseValue;
    data['goodsIsShelves'] = this.goodsIsShelves;
    data['specification'] = this.specification;
    data['goodsMaxSale'] = this.goodsMaxSale;
    return data;
  }
}
